package com.netbliz.ftpmanagment.pojo;

import com.netbliz.common.util.KeyTable;

public class SysUser {
	private Long id;
	private String username;
	private String password;
	private String mail;
	private String description;
	private Integer system;
	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getMail() {
		return mail;
	}

	public void setMail(String mail) {
		this.mail = mail;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Integer getSystem() {
		if(this.system==null){
			this.system=1;
		}
		return system;
	}

	public void setSystem(Integer system) {
		if(system==null){
			system=1;
		}
		this.system = system;
	}

	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	
	public static SysUser create(){
		SysUser result=new SysUser();
		result.setId(KeyTable.getNextKey(null));
		return result;
	}
}
